From ae0e4815793a813e83bb68f72d6d8f4c8536370e Mon Sep 17 00:00:00 2001 From: Jimmy Collins Date: Wed, 27 Sep 2006 18:24:08 +0000 Subject: [PATCH] (bug 7059) 'anchorencode' colon function needs one more replace '+' -> '_' --- includes/CoreParserFunctions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/CoreParserFunctions.php b/includes/CoreParserFunctions.php index 8759e70d11..326608e0a6 100644 --- a/includes/CoreParserFunctions.php +++ b/includes/CoreParserFunctions.php @@ -164,7 +164,7 @@ class CoreParserFunctions { } function anchorencode( $parser, $text ) { - return str_replace( '%', '.', urlencode( $text ) ); + return str_replace( '%', '.', str_replace('+', '_', urlencode( $text ) ) ); } } -- 2.20.1